package com.nsyue.auth.entity;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户表(User)表实体类
 *
 * @author laixm
 * @since 2023-05-06 15:18:01
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User extends Model<User> {
    //主键id
    private Long id;
    //用户名
    private String username;
    //密码
    private String password;
    //昵称
    private String nickname;
    //头像
    private String avatar;
    //邮箱
    private String email;
    //账号状态（0禁用/1启用）默认1
    private Integer status;
    //修改时间
    private Date updateTime;
    //创建时间
    private Date createTime;
    //手机号
    private String phone;
    //1单位/2个人
    private Integer userType;
    //帐号生成类型（0认证系统注册/1认证系统导入/2其他系统注册/3其他系统导入）
    private Integer registerType;
    //姓名全名
    private String fullName;
    //身份证号
    private String idNumber;
    //住址
    private String address;
    //入会时间
    private Date applyTime;
    //到期时间
    private Date endTime;
    //企业单位名称
    private String enterprise;
    //1男；2女
    private Integer gender;
    //职位
    private String position;
    //扩展字段，json格式，默认"{}"
    @Builder.Default
    private String ext = "{}";
    //最后登录ip
    private String ipAddr;
    //用户id
    private Long updateBy;


}

